package com.example.dblibrary.app;


import com.example.dblibrary.app.ImplMvp.ImpActivityBasePresenter;
import com.example.dblibrary.mvp.BaseMvp.BaseContract;

public class ActivityBasePresenter<M extends BaseContract.BaseModel,V extends BaseContract.BaseView> extends ImpActivityBasePresenter<M,V> {


    public ActivityBasePresenter(BaseActivity context) {
        super(context);
    }

    @Override
    protected M bindModel() {
        return null;
    }

    @Override
    public void attachView(V view) {
        mView=view;
    }

    @Override
    protected void unbindModel(M model) {

        if(model!=null){
            model=null;
        }
    }

    @Override
    protected void dettachView(V view) {

        if(view!=null){
            view=null;
        }
    }


    @Override
    protected void initData() {

    }
}
